http://android-er.blogspot.fr/2012/07/gridview-loading-photos-from-sd-card.html

http://androidopentutorials.com/android-image-slideshow-using-viewpager/


http://android-er.blogspot.fr/2012/07/implement-custom-linearlayout-for.

http://javapapers.com/android/android-image-slider-tutorial/

https://github.com/nostra13/Android-Universal-Image-Loader

http://codinglookseasy.blogspot.fr/2012/08/image-slide-show.html

https://examples.javacodegeeks.com/android/core/widget/viewflipper/android-viewflipper-example/

https://github.com/Trinea/android-open-project/tree/master/English%20Version

https://thepseudocoder.wordpress.com/2011/10/05/android-page-swiping-using-viewpager/

http://iamvijayakumar.blogspot.fr/2013/10/android-load-images-from-sdcard.html




https://examples.javacodegeeks.com/android/core/camera/http-camera-live-preview-example/

http://android-er.blogspot.fr/2012/12/implement-onitemclicklistener-for.html

http://saigeethamn.blogspot.fr/2010/05/gallery-view-android-developer-tutorial.html

https://dzone.com/articles/displaying-images-sd-card

http://manishkpr.webheavens.com/android-viewpager-as-image-slide-gallery-swipe-gallery/

http://www.geeks.gallery/how-to-display-image-gallery-using-viewpager-in-android/

http://www.androidwarriors.com/2015/10/load-image-to-grid-view-from-sd-card-in.html

https://github.com/suwa-yuki/ViewPagerSample


Android Image slider with Swipe Gesture

http://stackoverflow.com/questions/15189783/android-viewpager-gallery-from-sdcard     infos

http://stackoverflow.com/questions/32110977/loading-images-from-sd-card-to-viewpager-android

http://www.masterqna.com/android/44483/sdcard%EC%97%90%EC%84%9C-%EB%B6%88%EB%9F%AC%EC%98%A8-%EC%9D%B4%EB%AF%B8%EC%A7%80%EB%A5%BC-viewpager%EC%97%90-%EB%BF%8C%EB%A0%A4%EC%A3%BC%EA%B8%B0

http://www.androprogrammer.com/2014/02/add-gesture-in-image-switcher-to-swipe.html

http://www.androidhive.info/2013/09/android-fullscreen-image-slider-with-swipe-and-pinch-zoom-gestures/

http://www.androprogrammer.com/2014/02/add-gesture-in-image-switcher-to-swipe.html

http://mylearnandroid.blogspot.fr/2014/02/multiple-choose-custom-gallery.html


http://android-er.blogspot.fr/2012/11/list-mediastoreimagesthumbnails-in.html

http://android-er.blogspot.fr/2012/10/list-images-with-thumbnails.html

http://android-er.blogspot.fr/2012/10/get-path-of-image-in.html

https://drive.google.com/file/d/0B1pqesu2pQQ3MDJLMjB5SlgwYms/view

http://javatechig.com/android/android-gridview-example-building-image-gallery-in-android

https://mobilecomputing650003.wordpress.com/2013/10/15/mediastore-content-provider-to-retrieve-images-from-sdcard-and-displaying-in-gridview/

http://karanbalkar.com/2014/05/displaying-images-from-sd-card-in-android/


package app.test;

import android.app.Activity;
import android.os.Bundle;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.Toast;

public class Test extends Activity {
    Integer[] imageIDs = {
            R.drawable.icon,
            R.drawable.icon,
            R.drawable.icon,
            R.drawable.icon,
            R.drawable.icon,
            R.drawable.icon,
            R.drawable.icon
    };
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        GridView gridView = (GridView) findViewById(R.id.gridview);
        gridView.setAdapter(new ImageAdapter(this));
 
        gridView.setOnItemClickListener(new OnItemClickListener() 
        {
            public void onItemClick(AdapterView<?> parent, 
            View v, int position, long id) 
            {                
                Toast.makeText(getBaseContext(), 
                        "pic" + (position + 1) + " selected", 
                        Toast.LENGTH_SHORT).show();
            }
        });        
    }
    
    public class ImageAdapter extends BaseAdapter 
    {
        private Context context;
 
        public ImageAdapter(Context c) 
        {
            context = c;
        }
 
        //---returns the number of images---
        public int getCount() {
            return imageIDs.length;
        }
 
        //---returns the ID of an item--- 
        public Object getItem(int position) {
            return position;
        }
 
        public long getItemId(int position) {
            return position;
        }
 
        //---returns an ImageView view---
        public View getView(int position, View convertView, ViewGroup parent) 
        {
            ImageView imageView;
            if (convertView == null) {
                imageView = new ImageView(context);
                imageView.setLayoutParams(new GridView.LayoutParams(185, 185));
                imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
                imageView.setPadding(5, 5, 5, 5);
            } else {
                imageView = (ImageView) convertView;
            }
            imageView.setImageResource(imageIDs[position]);
            return imageView;
        }
    }    
}

//main.xml

<?xml version="1.0" encoding="utf-8"?>
<GridView xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/gridview"
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent"
    android:numColumns="auto_fit"
    android:verticalSpacing="10dp"
    android:horizontalSpacing="10dp"
    android:columnWidth="90dp"
    android:stretchMode="columnWidth"
    android:gravity="center"
/>





